package com.tool.configuration.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @author 酒徒
 * @Version 1.0
 * @data 2024/1/22 20:09
 */

public class Email_Util extends Authenticator {
    String userName = null;
    String password = null;

    public Email_Util() {
    }

    public Email_Util(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(userName, password);
    }
}
